package com.shard.jdbc.controller;

import com.shard.jdbc.entity.TableOne;
import com.shard.jdbc.service.ShardService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

@RestController
public class ShardController {

    @Resource
    private ShardService shardService ;

    /**
     * 4、查询表 table_one 数据
     */
    @RequestMapping("/selectOneByName")
    public TableOne selectOneByName ( String name,String dbNo){
        return shardService.selectOneByName(name,dbNo);
    }


}
